<!DOCTYPE html>
<html lang="en">
<script src="../plugins/echarts/echarts.js"></script>
<meta charset="utf-8">
<body class="hold-transition">


            <!-- 为 ECharts 准备一个具备大小（宽高）的 DOM -->
            <div id="main" style="height:600px;"></div>

<script>
    var myChart = echarts.init(document.getElementById('main'))
    option = {
        xAxis: {
            type: 'category',
            data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
        },
        yAxis: {
            type: 'value'
        },
        series: [{
            data: [820, 932, 901, 934, 1290, 1330, 1320],
            type: 'line'
        }]
    };
    myChart.setOption(option);
</script>

</body>

</html>